<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>userList</title>
</head>
<body>
	<form action="${ctx}/user/userList" name="userInfoListDM">
		用户名：<input type="text" name="userName" value="" />&nbsp;&nbsp;<input type="submit"
			name="submitUser" value="查询" />&nbsp;&nbsp;<a href="${ctx}/user/toAddUser">新增用户</a>
	</form>
	<c:if test="${not empty userInfoListDM}">
		<table width="100%" border="1" cellspacing="1" cellpadding="0">
			<tr>
				<td align="center">用户ID</td>
				<td align="center">用户名</td>
				<td align="center">密码</td>
				<td align="center">联系电话</td>
				<td align="center">年龄</td>
				<td align="center">操作</td>
			</tr>
			<c:forEach items="${userInfoListDM}" var="userDm" varStatus="i">
				<tr>
					<td align="center">${userDm.userId }</td>
					<td align="center">${userDm.userName }</td>
					<td align="center">${userDm.password }</td>
					<td align="center">${userDm.phone }</td>
					<td align="center">${userDm.age }</td>
					<td align="center"><a href="${ctx}/user/getUser?userId=${userDm.userId }">详情</a>&nbsp;<a href="${ctx}/user/delUser?userId=${userDm.userId }">删除</a></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</body>
</html>